//
//  UIImageView+Request.h
//  DatangLife
//
//  Created by 陈建 on 2018/6/7.
//  Copyright © 2018年 DatangLife. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImageView (Request)
/**
 设置图片
 @param urlStr 字符串
 */
- (void)setImageWithUrlString:(NSString *)urlStr;
- (void)setImageWithURL:(NSURL *)URL;

- (void)setImageWithUrlString:(NSString *)urlStr palceHolderImage:(UIImage *)image;
- (void)setImageWithURL:(NSURL *)URL palceHolderImage:(UIImage *)image;

- (void)setImageWithUrlString:(NSString *)urlStr palceHolderImage:(UIImage *)image finishHandle:(void(^)(BOOL finished, UIImage *image))finishHandle;
- (void)setImageWithURL:(NSURL *)URL palceHolderImage:(UIImage *)image finishHandle:(void(^)(BOOL finished, UIImage *image))finishHandle;

- (void)setImageWithUrlString:(NSString *)urlStr palceHolderImage:(UIImage *)image progressHandle:(void(^)(CGFloat progress))progressHandle finishHandle:(void(^)(BOOL finished, UIImage *image))finishHandle;
- (void)setImageWithURL:(NSURL *)URL palceHolderImage:(UIImage *)image progressHandle:(void(^)(CGFloat progress))progressHandle finishHandle:(void(^)(BOOL finished, UIImage *image))finishHandle;
@end
